function factory(i){
    if(i == 1){
        return 1
    }else{
        console.log('递归函数f'+i)
        return factory(i-1)*i
    }
}

let num = 4
console.log(factory(num))